Flush Routing, MAC, and ARP Tables for a Port

Flush or clear the routing tables for administrative and troubleshooting purposes. The clear and flush commands perform the same function; they remove the contents of the table.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...][slot/all][all]}

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Flush IP routing tables by port:

    action flushIp

  3. Flush the MAC address tables by port:

    action flushMacFdb

  4. Flush ARP tables by port:

    action flushArp

  5. Flush all tables with one command:

    action flushAll

  6. Exit to Global Configuration mode:

    exit

  7. Clear a routing table for a port:

    clear ip route gigabitethernet {slot/port[sub-port]}

Example

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#interface gigabitEthernet 1/1
Switch:1(config-if)#action flushAll
Switch:1(config-if)#exit
Switch:1(config)#clear ip route gigabitethernet 1/1

Variable Definitions

The following table defines parameters for the clear ip route gigabitethernet command.

Variable

Value

{slot/port[/sub-port]}

Identifies a single slot and port. If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.